import {
	http
} from '@/utils/request.js'

// 登录
export function login(obj) {
	return http({
		url: '/CCustomer/loginApp',
		method: 'post',
		data: obj
	})
}

export function queryFileListByApp(obj) {
	return http({
		url: '/CCustomer/queryFileListByApp',
		method: 'get',
		data: obj
	})
}

// 首页banner列表 
export function queryListByApp(obj) {
	return http({
		url: '/CBanner/queryListByApp',
		method: 'get',
		data: obj
	})
}

// banner详情页
export function queryOneByApp(obj) {
	return http({
		url: '/CBanner/queryOneByApp',
		method: 'get',
		data: obj
	})
}

// 平台爆款列表
export function queryHotProductListByApp(obj) {
	return http({
		url: '/CHotRecommend/queryHotProductListByApp',
		method: 'get',
		data: obj
	})
}

// 推荐商品列表
export function queryHomeProductListByApp(obj) {
	return http({
		url: '/CProduct/queryHomeProductListByApp',
		method: 'get',
		data: obj
	})
}

export function queryPageSearchByApp(obj) {
	return http({
		url: '/CProduct/queryPageSearchByApp',
		method: 'post',
		data: obj
	})
}


export function queryInvestmentProductDetailByApp(obj) {
	return http({
		url: '//CProduct/queryInvestmentProductDetailByApp',
		method: 'get',
		data: obj
	})
}

export function queryByDetailByApp(obj) {
	return http({
		url: '//CProduct/queryByDetailByApp',
		method: 'get',
		data: obj
	})
}

//  订单列表
export function queryByCustomerOrderListByApp(obj) {
	return http({
		url: '/COrder/queryByCustomerOrderListByApp',
		method: 'get',
		data: obj
	})
}

//  订单详情
export function queryOrderDetailByApp(obj) {
	return http({
		url: '/COrder/queryOrderDetailByApp',
		method: 'get',
		data: obj
	})
}

//  预约单列表
export function queryReserveOrderPageByApp(obj) {
	return http({
		url: '/COrder/queryReserveOrderPageByApp',
		method: 'post',
		data: obj
	})
}

//  我的地址列表
export function queryAddressPageByApp(obj) {
	return http({
		url: '/CAddress/queryAddressPageByApp',
		method: 'post',
		data: obj
	})
}

//  查询单个地址
export function queryAddressOneByApp(obj) {
	return http({
		url: '/CAddress/queryAddressOneByApp',
		method: 'get',
		data: obj
	})
}

//  添加地址
export function insertAddressOneByApp(obj) {
	return http({
		url: '/CAddress/insertAddressOneByApp',
		method: 'post',
		data: obj
	})
}

//  编辑地址
export function updateAddressByApp(obj) {
	return http({
		url: '/CAddress/updateAddressByApp',
		method: 'post',
		data: obj
	})
}

//  删除地址
export function deleteAddressByApp(obj) {
	return http({
		url: '/CAddress/deleteAddressByApp',
		method: 'post',
		data: obj
	})
}

//  查询我的管家
export function queryCustomerHousekeeperByApp(obj) {
	return http({
		url: '/CHousekeeper/queryCustomerHousekeeperByApp',
		method: 'get',
		data: obj
	})
}

//  查询我的流水
export function queryBalanceChangeFlowPageByApp(obj) {
	return http({
		url: '/CBalanceChangeFlow/queryBalanceChangeFlowPageByApp',
		method: 'post',
		data: obj
	})
}

//  查询会员等级流水
export function queryGradeInfo(obj) {
	return http({
		url: '/CCustomer/queryGradeInfo',
		method: 'get',
		data: obj
	})
}

//  查询结算订单页面
export function goToOrderPreparationPageByApp(obj) {
	return http({
		url: '/COrder/goToOrderPreparationPageByApp',
		method: 'post',
		data: obj
	})
}

// 生成订单
export function generateOrderByCustomerApp(obj) {
	return http({
		url: '/COrder/generateOrderByCustomerApp',
		method: 'post',
		data: obj
	})
}

// 立即支付
export function balancePaymentByApp(obj) {
	return http({
		url: '/COrder/balancePaymentByApp',
		method: 'post',
		data: obj
	})
}

// 
export function prePayOrderByCustomerApp(obj) {
	return http({
		url: '/COrder/prePayOrderByCustomerApp',
		method: 'post',
		data: obj
	})
}

//  查询剩余金额
export function queryCustomerInfoByApp(obj) {
	return http({
		url: '/CCustomer/queryCustomerInfoByApp',
		method: 'get',
		data: obj
	})
}

// 
export function setIsDefaultAddressByApp(obj) {
	return http({
		url: '/CAddress/setIsDefaultAddressByApp',
		method: 'post',
		data: obj
	})
}

// 
export function queryInvestmentProductPageByApp(obj) {
	return http({
		url: '/CProduct/queryInvestmentProductPageByApp',
		method: 'post',
		data: obj
	})
}

// 
export function updateCustomerByApp(obj) {
	return http({
		url: '/CCustomer/updateCustomerByApp',
		method: 'post',
		data: obj
	})
}

// 
export function queryCustomerVipPageApp(obj) {
	return http({
		url: '/CVipPage/queryCustomerVipPageApp',
		method: 'get',
		data: obj
	})
}